package router

import (
	"ginstudydemo.com/main/controllers"
	"ginstudydemo.com/main/middleware"
	"github.com/gin-gonic/gin"
)

// UploadFileRouter 函数定义了 /book 路由组及其处理函数
func UploadFileRouter(r *gin.Engine) {
	rGroup := r.Group("/files")
	{
		// 新增角色
		rGroup.POST("", middleware.NewJwtV5().JWTAuth(), controllers.NewFileController().UploadFile)
	}

}
